package com.summer.campussct.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author Mr.Chen
 * @since 2024-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="VehicleOrder对象", description="订单表")
public class VehicleOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "下单的用户id")
    @NotNull(message = "用户id不为空")

    private Long uid;

    @ApiModelProperty(value = "车辆id")
    @NotNull(message = "车辆id不为空")
    private Long vid;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderPrice;

    @ApiModelProperty(value = "订单状态，字典表400")
    private Integer orderStatus;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer isDeleted;


}
